package com.logic.system.domain;

import java.util.HashMap;
import java.util.List;

import net.sf.json.JSONObject;

public class WeChatUser {

	private String userid;
	private String name;
	private String department;
	private String position;
	private String mobile;
	private String gender;
	private String email;
	private String weixinid;
	private String avatar_mediaid;
	private HashMap<String,List<HashMap<String,String>>> extattr;
	
	
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWeixinid() {
		return weixinid;
	}
	public void setWeixinid(String weixinid) {
		this.weixinid = weixinid;
	}
	public String getAvatar_mediaid() {
		return avatar_mediaid;
	}
	public void setAvatar_mediaid(String avatar_mediaid) {
		this.avatar_mediaid = avatar_mediaid;
	}
	public HashMap<String, List<HashMap<String, String>>> getExtattr() {
		return extattr;
	}
	public void setExtattr(HashMap<String, List<HashMap<String, String>>> extattr) {
		this.extattr = extattr;
	}

	@Override
	public String toString(){
		JSONObject data = new JSONObject();
		if(null!=userid){
			data.put("userid", userid);
		}
		if(null!=name){
			data.put("name", name);
		}
		if(null!=department){
			data.put("department", department);
		}
		if(null!=position){
			data.put("position", position);
		}
		if(null!=mobile){
			data.put("mobile", mobile);
		}
		if(null!=gender){
			data.put("gender", gender);
		}
		if(null!=email){
			data.put("email", email);
		}
		if(null!=weixinid){
			data.put("weixinid", weixinid);
		}
		if(null!=avatar_mediaid){
			data.put("avatar_mediaid", avatar_mediaid);
		}
		if(null!=extattr){
			data.put("extattr", extattr.toString());
		}
		return data.toString();
	}
  
}